﻿@using HuntingFishGame.ManageDomain.Model.GoldShopGoods;
@model GoldShopGoodsModel
@{
    ViewBag.Title = "AddOrEdit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<style>
    
</style>

<script>
    function save() {
        if ($("#remark").val().length < 20) {
            alert("备注不得少于20个字符");
            return false;
        }
    }
</script>
<div class="head">
    <div class="title">
        新增项目
    </div>
</div>
<div>
    @using (Html.BeginForm("AddOrEdit", "GoldShopGoods", FormMethod.Post, new { enctype = "multipart/form-data", @onsubmit = "return sub()" }))
    {
    <ul class="mydetail">
        <li>
            <input class="mylongtext" type="hidden" id="id" name="id" value="@Model.id" />
            <label>描述</label><input class="mylongtext" type="text" id="text" name="text" value="@Model.text" />
        </li>
        <li>
            <label>金币</label><input class="mylongtext" type="text" id="gold" name="gold" value="@Model.gold" />
        </li>
        <li>
            <label>赠送金币</label><input class="mylongtext" type="text" id="giftgold" name="giftgold" value="@Model.giftgold" />
        </li>
        <li>
            <label>价格</label><input class="mylongtext" type="text" id="price" name="price" value="@Model.price" />
        </li>
        <li>
            <label>时间</label><input type="text" class="text" autocomplete="off"name="starttime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'1900-01-01',readOnly:true})" value="@(string.IsNullOrEmpty(Model.starttime) ? "" : Model.starttime)" />
            至
        <input type="text" class="text" autocomplete="off" name="endtime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'1900-01-01',readOnly:true})" value="@(string.IsNullOrEmpty(Model.endtime) ? "" : Model.endtime)"/>
        </li>
        <li>
            <input type="submit" class="btn1" value="提交" onclick="return save()" />
        </li>
    </ul>
    }
</div>
